package com.casic.ops.controller;

import com.casic.ops.annotation.RestWrapper;
import com.casic.ops.entity.domain.OpsResult;
import com.casic.ops.entity.request.EventLogRequest;
import com.casic.ops.entity.vo.EventLogVO;
import com.casic.ops.service.api.UserEventLogService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName ops-platform
 * @Description 操作日志
 * @Author mianbin
 * @Date 2022/5/31 10:58
 * @Version 1.0
 **/
@RestController
@RestWrapper
@RequestMapping("/ops/api/log")
public class EventLogController {

    @Resource
    private UserEventLogService userEventLogService;

    /**
     * 获取操作日志
     */
    @RequestMapping("/list")
    public OpsResult<List<EventLogVO>> getLogList(@RequestBody EventLogRequest request) {
        return userEventLogService.getLogList(request);
    }

}
